package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车表对象 ord_cart_item
 * 
 * @author wpf
 * @date 2023-05-19
 */
public class OrdCartItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 商品的id */
    @Excel(name = "商品的id")
    private Long productId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long quantity;

    /** 添加到购物车的价格 */
    @Excel(name = "添加到购物车的价格")
    private BigDecimal price;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String productPic;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String memberNickname;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleteStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setProductPic(String productPic) 
    {
        this.productPic = productPic;
    }

    public String getProductPic() 
    {
        return productPic;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setMemberNickname(String memberNickname) 
    {
        this.memberNickname = memberNickname;
    }

    public String getMemberNickname() 
    {
        return memberNickname;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setDeleteStatus(Integer deleteStatus) 
    {
        this.deleteStatus = deleteStatus;
    }

    public Integer getDeleteStatus() 
    {
        return deleteStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("userId", getUserId())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("productPic", getProductPic())
            .append("productName", getProductName())
            .append("memberNickname", getMemberNickname())
            .append("createDate", getCreateDate())
            .append("deleteStatus", getDeleteStatus())
            .toString();
    }
}
